
Stack EQU 0x800
Heap  EQU 0xc00
	AREA STACK, NOINIT, READWRITE, ALIGN=3
StackMem
	SPACE	Stack
__initial_sp

	AREA HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
HeapMem
	SPACE	Heap
__heap_limit

	PRESERVE8
	
	AREA RESET, CODE, READONLY
	EXPORT __Vectors
__Vectors
	DCD	__initial_sp
	DCD Reset_Handler
__Vectors_End

Reset_Handler	PROC
	EXPORT Reset_Handler
	IMPORT main
	LDR  R0, =main
	BX   R0
	B    .
	ENDP
	
	ALIGN
	END